package com.newa.beans;

public class Orderu {
	private int ID;
	private String NAME;
	private String EMAIL;
	private String PHONE;
	private String MESSAGE;
	private String PFILE;
	
	
	
	public Orderu() {
	}
	
	public Orderu(int iD, String nAME, String eMAIL, String pHONE,
			String mESSAGE, String pFILE) {
		super();
		ID = iD;
		NAME = nAME;
		EMAIL = eMAIL;
		PHONE = pHONE;
		MESSAGE = mESSAGE;
		PFILE = pFILE;
	}
	public int getID() {
		return ID;
	}
	public void setID(int iD) {
		ID = iD;
	}
	public String getNAME() {
		return NAME;
	}
	public void setNAME(String nAME) {
		NAME = nAME;
	}
	public String getEMAIL() {
		return EMAIL;
	}
	public void setEMAIL(String eMAIL) {
		EMAIL = eMAIL;
	}
	public String getPHONE() {
		return PHONE;
	}
	public void setPHONE(String pHONE) {
		PHONE = pHONE;
	}
	public String getMESSAGE() {
		return MESSAGE;
	}
	public void setMESSAGE(String mESSAGE) {
		MESSAGE = mESSAGE;
	}
	public String getPFILE() {
		return PFILE;
	}
	public void setPFILE(String pFILE) {
		PFILE = pFILE;
	}
	
	public String getFileHref(){
		String hr = "/pages/orderFiles";
		String parse = getPFILE();
		int li = parse.lastIndexOf('/');
		hr += parse.substring(li);
		return hr;
	}
	
}
